Skip to content

chore(sdk): sync to agent_platform@474bec4 (v1.0.0)#144

Merged
abonneth merged 3 commits into
mainfrom
sync/agp-474bec4
Jun 25, 2026
Merged

chore(sdk): sync to agent_platform@474bec4 (v1.0.0)#144
abonneth merged 3 commits into
mainfrom
sync/agp-474bec4

Conversation

@abonneth

@abonneth abonneth commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Auto-generated from agent_platform's codegen home (sdk-codegen/).

Version: 0.1.13 (patch; every sync bumps +0.0.1)
Upstream: agent_platform@474bec4

drop Browser.headless (#1380)


Note

High Risk
Semver major plus breaking removals (headless) and a changed get_session_resource contract; proxy URLs also touch sensitive egress configuration.

Overview
Major release (1.0.0) aligning the Python SDK with the latest agent_platform OpenAPI codegen.

Breaking API surface: Browser.headless and patch/create environment headless are removed from types and clients. get_session_resource no longer returns None; it streams raw bytes (sync/async iterators) after following the presigned redirect, with NotFoundError on 404.

New capabilities: client.quota.get_token_quota() and TokenQuotaStatus for org token metering. Browser environments gain optional BrowserNetwork (proxy_url) on create/update/patch.

SDK behavior fixes: run_session / wait_for_session drain trailing events after the session settles when include_events is on. SessionHandle.send_message accepts a plain str (wrapped as a user message). api_key defaults are resolved inside __init__ (still from HAI_API_KEY when omitted).

Integration test browser env no longer passes headless.

Reviewed by Cursor Bugbot for commit 95cd47e. Bugbot is set up for automated code reviews on this repo. Configure here.

@abonneth abonneth requested a review from adeprezh as a code owner June 25, 2026 14:15
Co-authored-by: Cursor <cursoragent@cursor.com>
@abonneth abonneth changed the title chore(sdk): sync to agent_platform@474bec4 (v0.1.13) chore(sdk): sync to agent_platform@474bec4 (v1.0.0) Jun 25, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 3 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 1c76fd9. Configure here.

Comment thread pyproject.toml
Comment thread src/hai_agents/sessions/client.py
Comment thread src/hai_agents/polling.py
…r test

Co-authored-by: Cursor <cursoragent@cursor.com>
@abonneth abonneth merged commit 0a0e5dd into main Jun 25, 2026
7 checks passed
@abonneth abonneth deleted the sync/agp-474bec4 branch June 25, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants